home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-08 | 2.1 KB | 32 lines | [TEXT/R*ch] |
- import string
-
- def MDPrint(str):
- outstr = ''
- for i in str:
- o = ord(i)
- outstr = outstr \
- + string.hexdigits[(o >> 4) & 0xF] \
- + string.hexdigits[o & 0xF]
- print outstr,
-
-
- from time import time
-
- def makestr(start, end):
- result = ''
- for i in range(start, end + 1):
- result = result + chr(i)
-
- return result
-
-
- from md5 import md5
-
- def MDTimeTrial():
- TEST_BLOCK_SIZE = 1000
- TEST_BLOCKS = 10000
-
- TEST_BYTES = TEST_BLOCK_SIZE * TEST_BLOCKS
-
- # initialize test data, need temporary string filler